package com.bookmanger.common.utils;

import com.bookmanger.entity.dto.ManagerDTO;

/**
 * @author wei kunJie
 * @date 2024/11/5 15:11:14
 */
public class UserIdThreadLocal {
    private static final ThreadLocal<Long> userId = new ThreadLocal<>();
    public static Long getUserId() {
        return userId.get();
    }
    public static void saveUserId(Long user) {
        userId.set(user);
    }
}
